<template>
	<view class="main-box">
		<image class="logo-img" src="/static/loginPic.png"></image>
		<view class="phone-title">本机号码</view>
		<view class="phone-content">139****9344</view>
		<view class="login-button">一键登录</view>
		<view class="one-key-box">
			<image class="one-key-item" src="/static/loginWayPhone.png" @click="loginBy('phone')"></image>
			<image class="one-key-item" src="/static/loginWayWeixin.png"></image>
			<image class="one-key-item" src="/static/loginWayQQ.png"></image>
			<image class="one-key-item" src="/static/loginWayApple.png"></image>
		</view>
		<view class="agree-box">
			<checkbox checked="true" color="#FF691F" style="transform:scale(0.6)" />
			<text class="agree-text1">登录注册即同意</text>
			<text class="agree-text2">《BOOM用户协议》</text>
			<text class="agree-text2">、</text>
			<text class="agree-text2">《隐私政策》</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			loginBy(type) {
				switch (type) {
					case 'phone':
						uni.navigateTo({
							url: '/pages/phoneLogin'
						})
						break;
				}
			}
		}
	}
</script>

<style lang="scss">
	.main-box {
		width: 100vw;
		height: 100vh;
		background-color: white;
		display: flex;
		flex-direction: column;
		align-items: center;

		.logo-img {
			width: 240rpx;
			height: 220rpx;
			margin-top: 175rpx;
		}

		.phone-title {
			font-size: 31rpx;
			font-weight: 400;
			color: #222222;
			margin-top: 104rpx;
		}

		.phone-content {
			font-size: 61rpx;
			font-weight: 400;
			color: #222222;
			margin-top: 30rpx;
		}

		.login-button {
			width: 566rpx;
			height: 96rpx;
			background: #FF5E2E;
			border-radius: 23rpx;
			font-size: 31rpx;
			font-weight: bold;
			line-height: 96rpx;
			text-align: center;
			color: #FFFFFF;
			margin-top: 110rpx;
		}

		.one-key-box {
			display: flex;
			margin-top: 430rpx;
			justify-content: space-between;
			width: 566rpx;
			position: absolute;
			bottom: 200rpx;

			.one-key-item {
				width: 96rpx;
				height: 96rpx;
			}
		}

		.agree-box {
			margin-top: 70rpx;
			display: flex;
			align-items: center;
			position: absolute;
			bottom: 96rpx;

			.agree-text1 {
				font-size: 23rpx;
				font-weight: 400;
				color: #999999;
			}

			.agree-text2 {
				font-size: 23rpx;
				font-weight: 500;
				color: #222222;
			}
		}
	}
</style>
